<div class="modal-content">
    <div class="modal-header">
        <h4 class="modal-title" >修改任课信息</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">×</span>
        </button>
    </div>

    <div class="modal-body" style="overflow:auto;">
        <form class="form-inline">
            <div class="form-group" style="float:left;margin-bottom:10px;">
                <select class="form-control" ng-options="aca.prop_pk as aca.prop_value for aca in academics" ng-model="info.academic" ng-change="findClass()" form-check="must" form-check-alert="学年不能为空">
                    <option value="">==学年==</option>
                </select>
            </div>
            <div class="form-group" style="float:left;margin-bottom:10px;">
                <select class="form-control" ng-options="sem.prop_pk as sem.prop_value for sem in semesters" ng-model="info.semester" ng-change="findClass()" form-check="must" form-check-alert="学期不能为空">
                    <option value="">==学期==</option>
                </select>
            </div>
            <div class="form-group" style="float:left;margin-bottom:10px;">
                <select class="form-control" ng-options="unit.id as unit.showname for unit in unitList" ng-model="info.fk_unit" ng-change="findGrade()"  form-check="must" form-check-alert="学校不能为空">
                    <option value="">==学校==</option>
                </select>
            </div>
            <div class="form-group" style="float:left;margin-bottom:10px;">
                <select class="form-control" ng-options="grade.id as grade.name for grade in gradeList" ng-model="info.fk_grade" ng-change="findClass()" form-check="must" form-check-alert="年级不能为空">
                    <option value="">==年级==</option>
                </select>
            </div>
            <div class="form-group" style="float:left;margin-bottom:10px;">
                <select class="form-control" ng-options="class.id as class.name for class in classList" ng-model="info.fk_class"  form-check="must" form-check-alert="班级不能为空">
                    <option value="">==班级==</option>
                </select>
            </div>
            <div class="form-group" style="float:left;margin-bottom:10px;">
                <select class="form-control" ng-options="course.id as course.name for course in courseList" ng-model="info.fk_course" form-check="must" form-check-alert="课程不能为空">
                    <option value="">==课程==</option>
                </select>
            </div>
            <div class="form-group" style="float:left;margin-bottom:10px;">
                <input ng-model="info.week" type="text" class="form-control"  placeholder="每周学时"/>
            </div>
            <div class="form-group" style="float:left;margin-bottom:10px;">
                <input ng-model="info.name" type="text" class="form-control" placeholder="任课教师姓名" />
                <button ng-click="select()" type="submit" class="btn btn-secondary"><i class="iconfont icon-search"></i>&nbsp;查询</button>
            </div>
        </form>

        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>选择</th>
                <th>姓名</th>
                <th>身份证号</th>
                <th>教职工类别</th>
                <th>工作单位</th>
                <th>人事单位</th>
            </tr>
            </thead>
            <tbody ng-switch on="page.current_num">
            <tr ng-switch-when="0">
                <td colspan="100" >查询无记录</td>
            </tr>
            <tr ng-repeat="row in rows">
                <td><input type="radio" name="dataPk" value="{{row.id}}"/> </td>
                <td>{{row.name}}</td>
                <td>{{row.id_card}}</td>
                <td>{{row.jzglbm_name}}</td>
                <td>{{row.gzdw_name}}</td>
                <td>{{row.rsdw_name}}</td>
            </tr>

            </tbody>
        </table>
        <div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page"></div>
    </div>

    <div class="modal-footer">
       <button ng-click="saveForm()" type="button" class="btn btn-success"><i class="iconfont icon-correct"></i>&nbsp;保存</button>
    </div>
</div>